package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.LeaseContractInfo;
import org.jeecg.modules.zcgl.vo.statistical.ContractParameterVo;
import org.jeecg.modules.zcgl.vo.statistical.DepositStatisticalVo;
import org.jeecg.modules.zcgl.vo.statistical.sum.ContractParameterSumVo;

import java.util.List;

/**
 * @Description: 合同信息
 * @Author: jeecg-boot
 * @Date:   2020-06-20
 * @Version: V1.0
 */
public interface LeaseContractInfoMapper extends BaseMapper<LeaseContractInfo> {


    /**
     * 合同台账
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<ContractParameterVo> queryContractParameterVoList(Page<ContractParameterVo> page , @Param("ew")  QueryWrapper<ContractParameterVo> queryWrapper);

    /**
     * 合同台账(导出用)
     * @param queryWrapper
     * @return
     */
    List<ContractParameterVo> queryContractParameterVoList(@Param("ew")  QueryWrapper<ContractParameterVo> queryWrapper);

    ContractParameterSumVo getContractParameterSum(@Param("ew") QueryWrapper<ContractParameterVo> queryWrapper);

    /**
     * 保证金统计
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<DepositStatisticalVo> queryDepositStatisticalVoList(Page<DepositStatisticalVo> page, @Param("ew")  QueryWrapper<DepositStatisticalVo> queryWrapper);

    /**
     * 保证金统计(用作导出)
     * @param queryWrapper
     * @return
     */
    List<DepositStatisticalVo> queryDepositStatisticalVoList(@Param("ew")  QueryWrapper<DepositStatisticalVo> queryWrapper);
}
